package com.legal.aid.app.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.legal.aid.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

/**
 * 法律法规对象 z_law_regulation
 *
 * @author ruoyi
 * @date 2025-05-27
 */
public class LawRegulationVo implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 法规ID */
    private Long lawId;

    /** 法规标题 */
    @Excel(name = "法规标题")
    private String title;

    /** 法规内容 */
    @Excel(name = "法规内容")
    private String content;

    /** 发布日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishDate;

    /** 是否在首页展示（0-否 1-是） */
    private String isHome;
    /**  排序分类 **/
    private String sortField;
    private String sortOrder;
    private String category;

    public void setCategory(String category) {
        this.category = category;
    }

    public String getCategory() {
        return category;
    }
    public String getSortField() {
        return sortField;
    }

    public void setSortField(String sortField) {
        this.sortField = sortField;
    }

    public String getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(String sortOrder) {
        this.sortOrder = sortOrder;
    }


    public void setCategory(String category) {
        this.category = category;
    }

    public String getCategory() {
        return category;
    }
    public String getSortField() {
        return sortField;
    }

    public void setSortField(String sortField) {
        this.sortField = sortField;
    }

    public String getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(String sortOrder) {
        this.sortOrder = sortOrder;
    }


    public void setLawId(Long lawId)
    {
        this.lawId = lawId;
    }

    public Long getLawId()
    {
        return lawId;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }

    public void setPublishDate(Date publishDate)
    {
        this.publishDate = publishDate;
    }

    public Date getPublishDate()
    {
        return publishDate;
    }

    public void setIsHome(String isHome)
    {
        this.isHome = isHome;
    }

    public String getIsHome()
    {
        return isHome;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("lawId", getLawId())
                .append("title", getTitle())
                .append("content", getContent())
                .append("publishDate", getPublishDate())
                .append("isHome", getIsHome())
                .toString();
    }
}
